package com.apkfuns.jsbridge.view;


import com.apkfuns.jsbridge.view.slice.TakePictureAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class CameraAbility extends Ability {
    private static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP, 0x00205, "CameraAbility");

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(TakePictureAbilitySlice.class.getName());//CameraAbilitySlice

        String  imagePath = intent.getStringParam("imagePath");
        HiLog.info(LABEL, "CameraAbility intent  imagePath:%{public}s.", imagePath);
    }

    @Override
    protected void onAbilityResult(int requestCode, int resultCode, Intent resultData) {
        super.onAbilityResult(requestCode, resultCode, resultData);
    }


}
